<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Screensaver</title>
<style>
div#energysaving, div#energysaving * {  -moz-border-radius: 0;  -webkit-border-radius: 0;  border: 0;  background-color: #000000; } div#energysaving {  margin: 0;  padding: 0;  position: absolute;  left: 50%;  top: 50%;  opacity: 0;  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";  filter: alpha(opacity=0);  text-align: center;  z-index: 100; } @media screen { body>div#energysaving { position: fixed; } } div#energysaving p {  margin: 0;  padding: 0;  width: 100%;  font-size: 18px;  font-family: arial;  color: #333333;  position: relative;  top: 40%;  line-height: 20px;  font-weight: bold;  text-align: center;  text-shadow: none; } div#energysaving p span {  color: #FFFFFF;  font-size: 12px;  font-weight: normal; } div#energysaving div#copyrightIdlohulhaq {  padding: 0;  margin: 0;  color: #333333;  font-size: 12px;  font-weight: normal;  position: absolute;  bottom: 20px;  text-align: center;  width: 100%;  height: 20px;  left: 0%; }
</style>
</head>
        <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script>
        <script>
                var setTime = 10;
                var idleTime = 0;
                var standby = false;
                function CheckInactivity() {
                        idleTime += 10;
                        if (idleTime > setTime) {
                                InitializeStandBy();
                        }
                }
                function InitializeStandBy() {
                        if (!standby) {
                                var h = 0;
                                h = $(window).height();
                                $("#energysaving").show().css({
                                        height: "0",
                                        width: "0",
                                        left: "50%",
                                        top: "50%"
                                }).animate({
                                        width: "100%",
                                        height: h,
                                        left: "0",
                                        top: "0",
                                        opacity: "1"
                                },
                                1000);
                                standby = true;
                        }
                }
                function StopStandBy() {
                        if (standby) {
                                $("#energysaving").animate({
                                        width: "0",
                                        height: "0",
                                        opacity: "0",
                                        left: "50%",
                                        top: "50%"
                                },
                                500);
                                setTimeout('$("#energysaving").hide();', 800);
                                standby = false;
                        }
                }
                function InitJQuery() {
                        if (typeof(jQuery) == "undefined") {
                                setTimeout("InitJQuery();", 50);
                        } else {
                                $(function() {
                                        $(document).ready(function() {
                                                setInterval("CheckInactivity();", 10000);
                                                $(this).mousemove(function(e) {
                                                        idleTime = 0;
                                                        StopStandBy();
                                                });
                                                $(document).keypress(function(e) {
                                                        idleTime = 0;
                                                        StopStandBy();
                                                });
                                                $("body").append('<div id="energysaving"><p>Energy saving mode for Knight of Access.<br /><span>Move your mouse to go back to the page.</span></p><div id="copyrightIdlohulhaq">Copyright 2009 <font style="color: #666666;">idlohulhaqDOTcom</font> - Free to use</div></div>');
                                                $("#energysaving").hide();
                                        });
                                });
                        }
                }
                InitJQuery();
        </script>
<body>
</body>
</html>
